cmake_minimum_required(VERSION 3.8...3.15 FATAL_ERROR)

project(timpi)

set(timpi_src
	src/apps/version.cpp
	src/parallel/src/communicator.cpp
	src/parallel/src/message_tag.cpp
	src/parallel/src/request.cpp
	src/utilities/src/timpi_assert.cpp
	src/utilities/src/timpi_init.cpp
	src/utilities/src/timpi_version.cpp
)

add_library(timpi ${timpi_src})
target_include_directories(timpi PUBLIC ${PROJECT_SOURCE_DIR}/include)

add_subdirectory(test)
#test/dispatch_to_packed_unit.cpp
#test/message_tag_unit.cpp
#test/packed_range_unit.cpp
#test/parallel_sync_unit.cpp
#test/parallel_unit.cpp
#test/set_unit.cpp